/*
 *   Copyright (c) 2010-2022, SIUFUNG
 */
package net.siufung.market.base.tenant.controller.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.extern.slf4j.Slf4j;
import net.siufung.core.utils.CopyUtil;
import net.siufung.market.base.tenant.mapper.entity.TenantQuota;

import java.io.Serializable;

/**
 * <p>
 * 系统租户配额表 默认数据传参对象
 * </p>
 * @author 陈建峰
 * @since 2022-07-06 14:45:08
 */
@Slf4j
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TenantQuotaDto", description="系统租户配额表默认数据传输对象")
public class TenantQuotaDto implements Serializable {

    private static final long serialVersionUID = 4486107844712470896L;

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    private Integer id;

    /**
     * 配额Key
     */
    @ApiModelProperty(value = "配额Key")
    private String quotaKey;

    /**
     * 配额Key文本
     */
    @ApiModelProperty(value = "配额Key文本")
    private String quotaKeyText;

    /**
     * 配额值
     */
    @ApiModelProperty(value = "配额值")
    private String quotaValue;

    /**
     * 租户Id
     */
    @ApiModelProperty(value = "租户Id")
    private Integer tenantId;

    /**
     * 数据标识
     */
    @ApiModelProperty(value = "数据标识")
    private Boolean deleted;




    /**
     * 转化成数据库实体
     * @return TenantQuota
     */
    public TenantQuota to(){
        TenantQuota tenantQuota = new TenantQuota();
        CopyUtil.copyProperties(this, tenantQuota);
        return tenantQuota;
    }
}